<?php
class faq extends baseController {    
	public function __construct() {
		parent::__construct ();
	}
    
    public function loadView($temp) {
        if (!isset($temp["data"]))
            $temp["data"] = '';
        $this->load->view("template", $temp);
    }
    
    public function index() {
        $this->session->set_userdata('selectedMenu', 'faq');
        $faqs = $this->faqModel->get_by(array('languageCode' => $this->session->userdata('languageCode')));
        $this->_data["template"] = 'faq';
        $this->_data["data"] = $faqs;
        $this->loadView($this->_data);
    }
}
?>